#include "gofgame/jumpdown/ListScene.h"
#include "gofgame/jumpdown/layer/ListCell.h"
#include "gofgame/jumpdown/layer/ListLayer.h"
using namespace cocos2d;
using namespace gofgame::jumpdown;
using namespace gofgame::jumpdown::layer;

ListScene *ListScene::createListScene(){
	ListScene *ls = new ListScene();
	if(!ls->init()) {
		delete ls;
		return nullptr;
	}
	ls->autorelease();
	return ls;
}

bool ListScene::init(){
	if(!CCScene::init()) {
		return false;
	}
	ListLayer *ll = ListLayer::createListLayer();
	this->addChild(ll);
	return true;
}